package com.leadingsoft.pwxk.commons;

import java.util.concurrent.ThreadFactory;

/**
 * 
 * @author ysh
 * @desc 线程命名辅助类
 */
public class NamedThreadFactory implements ThreadFactory {

	@Override
	public Thread newThread(Runnable r) {
		Thread thread = new Thread(r);
		thread.setName("抓取数据线程");
		return thread;
	}
}
